package org.uim.cricket.db.impl;

public class ExistSeries extends DBBooleanResultQuery {

	private String sId = null;
	
	public ExistSeries(int seriesID) {
		sId = String.valueOf(seriesID);
	}
	
	public ExistSeries(String theSeriesIDStr) {
		this.sId = theSeriesIDStr;
	}
	
	public boolean exists() {
		if (sId == null || sId.length() == 0) return false;
		
		try {
			
			return super.result("CALL sp_Exist_Series(" + sId + ");"); 
			
		} catch (Exception e) {
			e.printStackTrace();
		} 
		
		return false;
	}
	
}
